package top.mccat.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.mccat.system.domain.EmployeeVacation;
import top.mccat.system.mapper.EmployeeVacationMapper;
import top.mccat.system.service.IEmployeeVacationService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class EmployeeVacationServiceImpl implements IEmployeeVacationService
{
    @Autowired
    private EmployeeVacationMapper employeeVacationMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EmployeeVacation selectEmployeeVacationById(Long id)
    {
        return employeeVacationMapper.selectEmployeeVacationById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param employeeVacation 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EmployeeVacation> selectEmployeeVacationList(EmployeeVacation employeeVacation)
    {
        return employeeVacationMapper.selectEmployeeVacationList(employeeVacation);
    }

    @Override
    public EmployeeVacation selectDisplayVacation() {
        return employeeVacationMapper.selectDisplayVacation();
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param employeeVacation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEmployeeVacation(EmployeeVacation employeeVacation)
    {
        return employeeVacationMapper.insertEmployeeVacation(employeeVacation);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param employeeVacation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEmployeeVacation(EmployeeVacation employeeVacation)
    {
        return employeeVacationMapper.updateEmployeeVacation(employeeVacation);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeVacationByIds(Long[] ids)
    {
        return employeeVacationMapper.deleteEmployeeVacationByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeVacationById(Long id)
    {
        return employeeVacationMapper.deleteEmployeeVacationById(id);
    }
}
